home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / fsp-2.7 / fsp-2 / fsp / include / tweak.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-02  |  5.2 KB  |  213 lines

  1. /* include/tweak.h.  Generated automatically by configure.  */
  2. #ifndef _FSP_TWEAK_H_
  3. #define _FSP_TWEAK_H_
  4.  
  5. /* define this if your system allows file names > 14 characters */
  6. #define HAVE_LONG_FILE_NAMES 1
  7.  
  8. /* Define if you have dirent.h.  */
  9. #define DIRENT 1
  10.  
  11. /* Define if you don't have vprintf but do have _doprnt.  */
  12. #undef HAVE_DOPRNT
  13.  
  14. /* Define if you have unistd.h.  */
  15. #define HAVE_UNISTD_H 1
  16.  
  17. /* Define this if you have tzfile.h */
  18. #undef HAVE_TZFILE_H
  19.  
  20. /* Define if you have the vprintf function.  */
  21. #undef HAVE_VPRINTF
  22.  
  23. /* Define this if your compiler understands ANSI prototyping */
  24. #define HAVE_ANSI_PROTO 1
  25.  
  26. /* Define if you have the ANSI C header files. (ansi strings, ctype, etc.) */
  27. #define STDC_HEADERS 1
  28.  
  29. /* Define this if you are running on an AIX system. */
  30. #undef _ALL_SOURCE
  31.  
  32. /* Define this if you have posix compliance
  33. #undef _POSIX_SOURCE
  34.  
  35. /* Define if you don't have dirent.h, but have sys/dir.h.  */
  36. #undef SYSDIR
  37.  
  38. /* Define if you don't have dirent.h, but have sys/ndir.h.  */
  39. #undef SYSNDIR
  40.  
  41. /* Define if the closedir function returns void instead of int.  */
  42. #undef VOID_CLOSEDIR
  43.  
  44. /* Define to `int' if <sys/types.h> doesn't define.  */
  45. #undef uid_t
  46. #undef gid_t
  47. #undef pid_t
  48. #undef mode_t
  49. #undef size_t
  50. #undef nlink_t
  51.  
  52. /* Define HAVE_D_INO if you have d_ino in dirent (or direct) struct */
  53. /* see /usr/include/dir.h or ndir.h or dirent.h */
  54. #define HAVE_D_INO 1
  55.  
  56. /* Define HAVE_D_FILENO if you have d_fileno in dirent (or direct) struct */
  57. /* see /usr/include/dir.h or ndir.h or dirent.h */
  58. #define HAVE_D_FILENO 1
  59.  
  60. /* Define to empty if the keyword does not work.  */
  61. #undef const
  62.  
  63. /* Define the following if your site has a funky bsearch */
  64. #undef bsearch
  65.  
  66. /* define the following if your site doesn't define 'strdup()' */
  67. #undef NEED_STRDUP
  68.  
  69. /* define the following if your site doesn't define 'random()' */
  70. #undef NEED_RANDOM
  71.  
  72. /* define the following if your site doesn't define 'bcopy()' */
  73. #undef NEED_BCOPY
  74.  
  75. /* Define the following if your site has lockf() */
  76. #undef HAVE_LOCKF
  77.  
  78. /* Define the following if you site has shared memory */
  79. #undef HAVE_SHMEM
  80.  
  81. /* Define the following if your system has flock() */
  82. #define HAVE_FLOCK 1
  83.  
  84. /* define this if WEXITSTATUS is defined on your system */
  85. #define HAVE_WEXITSTATUS 1
  86.  
  87. /* define this if S_ISREG is defined on your system */
  88. #define HAVE_S_ISREG 1
  89.  
  90. /* define this if S_ISDIR is defined on your system */
  91. #define HAVE_S_ISDIR 1
  92.  
  93. /* define this if you have 'union wait' in <sys/wait.h> */
  94. #ifndef __hpux
  95. #define HAVE_UNION_WAIT 1
  96. #endif
  97.  
  98. /* define this if you have SECSPERDAY */
  99. #undef HAVE_SECSPERDAY
  100.  
  101. /* define this if you have DAYSPERNYEAR */
  102. #undef HAVE_DAYSPERNYEAR
  103.  
  104. /* define this if your have strings.h */
  105. #define HAVE_STRINGS_H 1
  106.  
  107. /* define this if your have string.h */
  108. #define HAVE_STRING_H 1
  109.  
  110. /* define this if you have memory.h */
  111. #define HAVE_MEMORY_H 1
  112.  
  113. /* define this if your string.h has bogus type declarations for a few things */
  114. #undef STRING_H_BOGUS
  115.  
  116. /* These two will be automatically set by the configure script if needed */
  117. #define USE_SECSPERDAY (long)60*60*24
  118. #define USE_DAYSPERNYEAR 365
  119.  
  120. /* defined if these data types have the indicated sizes in bytes */
  121. #define SIZE_SRT_2 1
  122. #define SIZE_LNG_4 1
  123. #undef SIZE_INT_2
  124. #define SIZE_INT_4 1
  125.  
  126. #ifndef HAVE_WEXITSTATUS
  127. #define WEXITSTATUS(x) ((x).w_T.w_Retcode)
  128. #endif
  129.  
  130. #ifndef HAVE_S_ISREG
  131. #define S_ISREG(mode) ((mode) & S_IFREG)
  132. #endif
  133.  
  134. #ifndef HAVE_S_ISREG
  135. #define S_ISDIR(mode) ((mode) & S_IFDIR)
  136. #endif
  137.  
  138. #if defined(DIRENT)
  139. #define HAVE_STRUCT_DIRENT
  140. #else
  141. #undef HAVE_STRUCT_DIRENT
  142. #endif
  143.  
  144. #ifndef HAVE_SECSPERDAY
  145. #define SECSPERDAY USE_SECSPERDAY
  146. #endif
  147.  
  148. #ifndef HAVE_DAYSPERNYEAR
  149. #define DAYSPERNYEAR USE_DAYSPERNYEAR
  150. #endif
  151.  
  152. #if defined(HAVE_D_INO) && !defined(HAVE_D_FILENO)
  153. #define d_fileno d_ino
  154. #else
  155. #if !defined(HAVE_D_INO) && defined(HAVE_D_FILENO)
  156. #define d_ino d_fileno
  157. #endif
  158. #endif
  159.  
  160. /****************************************************************************
  161. *  Macros to read and write multi-byte fields from the message header.
  162. ****************************************************************************/
  163.  
  164. #if defined(SIZE_SRT_2)
  165. #define WORD_TYPE_2 unsigned short
  166. #else
  167. #if defined(SIZE_INT_2)
  168. #define WORD_TYPE_2 unsigned
  169. #endif
  170. #endif
  171.  
  172. #if defined(SIZE_LNG_4)
  173. #define WORD_TYPE_4 unsigned long
  174. #else
  175. #if defined(SIZE_INT_4)
  176. #define WORD_TYPE_4 unsigned
  177. #endif
  178. #endif
  179.  
  180. #ifdef WORD_TYPE_4
  181. /* there is an integer type of size 4 */
  182. #define BB_READ4(V) ntohl(*(WORD_TYPE_4 *)(V))
  183. #define BB_WRITE4(V,A) *(WORD_TYPE_4 *)(V) = htonl(A)
  184. #else
  185. /* there is no integer type of size 4 */
  186. #define BB_READ4(V) ((((V)[0] << 24) & 0xff000000) + \
  187.              (((V)[1] << 16) & 0x00ff0000) + \
  188.              (((V)[2] <<  8) & 0x0000ff00) + \
  189.              (((V)[3]      ) & 0x000000ff))
  190.  
  191. #define BB_WRITE4(V,A) ((V)[0] = ((A) >> 24) & 0xff, \
  192.             (V)[1] = ((A) >> 16) & 0xff, \
  193.             (V)[2] = ((A) >>  8) & 0xff, \
  194.             (V)[3] = ((A)      ) & 0xff)
  195. #endif
  196.  
  197. #ifdef WORD_TYPE_2
  198. /* there is an integer type of size 2 */
  199. #define BB_READ2(V) ntohs(*(WORD_TYPE_2 *)(V))
  200. #define BB_WRITE2(V,A) *(WORD_TYPE_2 *)(V) = htons(A)
  201. #else
  202. /* there is no integer type of size 2 */
  203. #define BB_READ2(V) ((((V)[0] <<  8) & 0xff00) + \
  204.              (((V)[1]      ) & 0x00ff))
  205.  
  206. #define BB_WRITE2(V,A) ((V)[0] = ((A) >>  8) & 0xff, \
  207.             (V)[1] = ((A)      ) & 0xff)
  208. #endif
  209.  
  210. #include "proto.h"
  211.  
  212. #endif /* _FSP_TWEAK_H_ */
  213.